package com.sywb.chuangyebao.view;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.widget.LinearLayout;

import com.sywb.chuangyebao.R;
import com.sywb.chuangyebao.contract.AllCategoryContract;

import butterknife.BindView;

/**
 * Created by pxb on 2018/6/11.
 * 全部分类
 */

public class AllCategoryActivity extends ActionbarActivity<AllCategoryContract.AllCategoryPresenter> implements AllCategoryContract.AllCategoryView{

    @BindView(R.id.category_types_rv)
    RecyclerView categoryTypesRv;

    @BindView(R.id.category_list_rv)
    RecyclerView categoryListRv;

    @BindView(R.id.abl_ll)
    LinearLayout ab1Ll;

    private String mClickID = "";

    @Override
    public void initView(Bundle bundle) {
        super.initView(bundle);
        setTitle(R.string.allCategory);
        mClickID = getIntent().getStringExtra("p0");
    }

    @Override
    public void initPresenter() {
        mPresenter.initPresenter(this);
    }

    @Override
    public int getLayoutId(Bundle bundle) {
        return R.layout.activity_all_category;
    }

    @Override
    public RecyclerView getTypesRv() {
        return categoryTypesRv;
    }

    @Override
    public LinearLayout getAbl() {
        return ab1Ll;
    }

    @Override
    public String getClickID() {
        return mClickID;
    }

    @Override
    public RecyclerView getRecyclerView() {
        return categoryListRv;
    }

    @Override
    public void setNoData(boolean isNoData) {

    }
}
